﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Our.Umbraco.UniversalMediaPicker.Providers.TwitPic.Model
{
	[XmlRoot("user")]
	public class TwitPicUser
	{
		public TwitPicUser()
		{
			this.Images = new List<TwitPicImage>();
		}

		[XmlElement("id")]
		public string Id { get; set; }

		[XmlElement("twitter_id")]
		public string TwitterId { get; set; }

		[XmlElement("username")]
		public string Username { get; set; }

		[XmlElement("name")]
		public string Name { get; set; }

		[XmlElement("website")]
		public string Website { get; set; }
		
		[XmlElement("bio")]
		public string Bio { get; set; }
		
		[XmlElement("avatar_url")]
		public string AvatarUrl { get; set; }

		[XmlElement("photo_count")]
		public int PhotoCount { get; set; }

		[XmlArray("images")]
		[XmlArrayItem("image", typeof(TwitPicImage))]
		public List<TwitPicImage> Images { get; set; }
	}
}
